<%--
  Created by 陈熠.
  email: 228112142@qq.com
  Date : 2017/6/23
  Time : 10:27
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>规则管理</title>
    <%@ include file="/common/jsp/resource.jsp" %>
</head>
<body>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>金纪官缴费金额设置</legend>
    <form class="layui-form " action="">
        <div class="layui-form-item" style="margin: 10px;">
            <label class="layui-form-label" style="width: 500px">申请金纪官推荐权限应缴费用(元)</label>
            <div class="layui-input-normal">
                <input type="text" id="money" name="value" class="layui-input">
            </div>
            <div class="layui-input-inline">
                    <button class="layui-btn" lay-submit="" lay-filter="submit">修改</button>
            </div>
        </div>
    </form>
</fieldset>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>金纪官分享消息显示设置</legend>
    <form class="layui-form " action="">
        <div class="layui-form-item" style="margin: 10px;">
            <label class="layui-form-label" style="width: 500px">分享的标题</label>
            <div class="layui-input-normal">
                <input type="text" id="shareTitle" maxlength="100" name="value" class="layui-input" >
                <input type="hidden"  name="code"  value="cfg_share_title" >
            </div>
            <div class="layui-input-inline">
                <button class="layui-btn" lay-submit="" lay-filter="share">修改</button>
            </div>
        </div>
    </form>
    <form class="layui-form " action="">
        <div class="layui-form-item" style="margin: 10px;">
            <label class="layui-form-label" style="width: 500px">分享的描述</label>
             <div class="layui-input-normal">
                    <input type="text" id="shareDesc" maxlength="100" name="value" class="layui-input">
                 <input type="hidden"  name="code"  value="cfg_share_desc" >
             </div>
            <div class="layui-input-inline">
                <button class="layui-btn" lay-submit="" lay-filter="share">修改</button>
            </div>
        </div>
    </form>
        <div style="float: left;width:49%;">
            <label class="layui-form-label" style="width: 500px">消息图片</label>
            <form action="" id="smallForm" style="display: none" enctype="multipart/form-data" method="post">
                <input type="file" name="file" id="smallFile">
            </form>
            <button class="layui-btn upload-btn" onclick="uploadSmallImg()" style="margin-left: 10px;">
                <i class="fa fa-upload">&nbsp;</i>上传消息图片
            </button>
            <img id="LAY_smallImg_upload" style="margin-left: 540px;margin-top: 20px" src="">
        </div>

</fieldset>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>金纪官分享文章设置</legend>
    <div style="float: left;width:49%;">
            <form action="" id="shareForm" style="display: none" enctype="multipart/form-data" method="post">
                <input type="file" name="file" id="shareFile">
            </form>
            <button class="layui-btn upload-btn" onclick="uploadShareImg()" style="margin:10px 30px;">
                <i class="fa fa-upload">&nbsp;</i>上传消息图片
            </button><br/>
            <img id="LAY_shareImg_upload" src="" style="margin-left:30px;">
    </div>

</fieldset>
<div id="layer-photos-demo" class="layer-photos-demo">
    <img  layer-src="http://yffs-dev.oss-cn-shanghai.aliyuncs.com/20170815/34508348200442.jpg" src="http://yffs-dev.oss-cn-shanghai.aliyuncs.com/20170815/34508348200442.jpg" alt="图片1">
    <img  layer-src="http://yffs-dev.oss-cn-shanghai.aliyuncs.com/20170815/35252868887863.jpg" src="http://yffs-dev.oss-cn-shanghai.aliyuncs.com/20170815/35252868887863.jpg" alt="图片2">
</div>
<script type="text/javascript" src="/page/rule/js/list.js"></script>
<script>
    debugger;
    //调用示例
    layer.photos({
        photos: '#layer-photos-demo'
        ,anim: 2 //0-6的选择，指定弹出图片动画类型，默认随机（请注意，3.0之前的版本用shift参数）
    });
</script>
</body>
</html>